mob/proc
	beginlogin()
		alert("Hello Space Asshole! Please set up your account.")
		choosegender()

	choosegender()
		switch(alert("What gender are you?","Gender","Male","Female"))
			if("Male")
				usr.gender2 = "m"
				usr.icon_state = "m"
				job()
			if("Female")
				usr.gender2 = "f"
				usr.icon_state = "f"
				job()

mob/proc
	beginspawning()
		if(usr.job == "Captain")
			spawncaptain()
			usr.health = 10
	//		usr << 'asshole.ogg'
		if(usr.job == "Security")
			spawnsecurity()
			usr.health = 10
		if(usr.job == "Assistant")
			spawnassistant()
			usr.health = 10
	//		usr << 'asshole.ogg'

	beginreturn()
	//	checkbanned()
		changeview()
		checkadmin()
		usr.verbs += typesof(/mob/chat/verb)
		world << "[usr] has returned!"
	//	usr << 'asshole.ogg'
		return

	spawncaptain()
	//	checkbanned()
		usr.Move(locate(3,16,1))
		changeview()
		usr.verbs += typesof(/mob/chat/verb)
		checkadmin()
		welcome()

	spawnsecurity()
	//	checkbanned()
		usr.Move(locate(2,27,1))
		changeview()
		usr.verbs += typesof(/mob/chat/verb)
		checkadmin()
		welcome()

	spawnassistant()
	//	checkbanned()
		usr.Move(locate(10,27,1))
		changeview()
		usr.verbs += typesof(/mob/chat/verb)
		checkadmin()
		welcome()

	changeview()
		client.view = 9
		usr << "Welcome... To... Your... DOOOM..."
	welcome()
		world << "Welcome [usr] to the server!"


mob/var
	gender2 = ""
